package com.wwl.designpattern.factory.factorymethod;

import com.wwl.designpattern.factory.ICar;

/**
 * @program: DesignPattern
 * @description: 工厂方法 测试
 * @author: wwl
 * @create: 2019-03-13 17:20
 **/
public class FactoryMethodTest {
    public static void main(String[] args) {
        ICarFactory carFactory = new AutoCarFactory();
        ICar car = carFactory.create();
        car.start();
    }
}
